/**
 * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.opsli.api.wrapper.ykfire.ykuser;

import java.math.BigDecimal;
import java.util.Date;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.opsli.api.base.warpper.ApiWrapper;
import org.opsli.common.annotation.validator.Validator;
import org.opsli.common.annotation.validator.ValidatorLenMax;
import org.opsli.common.annotation.validator.ValidatorLenMin;
import org.opsli.common.enums.ValidatorType;
import org.opsli.plugins.excel.annotation.ExcelInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
* ykuser Model
*
* @author cy
* @date 2021-05-31 21:29:38
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class YkuserModel extends ApiWrapper {

    /** 用户名 */
    @ApiModelProperty(value = "用户名")
    @ExcelProperty(value = "用户名", order = 1)
    @ExcelInfo
    @ValidatorLenMax(255)
    private String username;

    /** 密码 */
    @ApiModelProperty(value = "密码")
    @ExcelProperty(value = "密码", order = 2)
    @ExcelInfo
    @ValidatorLenMax(255)
    private String password;

    /** 所属区域id */
    @ApiModelProperty(value = "所属区域id")
    @ExcelProperty(value = "所属区域id", order = 3)
    @ExcelInfo
    @ValidatorLenMax(19)
    private Long areaId;

    /** 姓名 */
    @ApiModelProperty(value = "姓名")
    @ExcelProperty(value = "姓名", order = 4)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_CHINESE
    })
    @ValidatorLenMax(255)
    private String name;

    /** 电话 */
    @ApiModelProperty(value = "电话")
    @ExcelProperty(value = "电话", order = 5)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_MOBILE
    })
    @ValidatorLenMax(255)
    private String phone;

    /** 检查员权限（0关闭，1开启） */
    @ApiModelProperty(value = "检查员权限（0关闭，1开启）")
    @ExcelProperty(value = "检查员权限（0关闭，1开启）", order = 6)
    @ExcelInfo
    @ValidatorLenMax(1)
    private Integer limitInspector;

    /** 审核员权限（0关闭，1开启） */
    @ApiModelProperty(value = "审核员权限（0关闭，1开启）")
    @ExcelProperty(value = "审核员权限（0关闭，1开启）", order = 7)
    @ExcelInfo
    @ValidatorLenMax(1)
    private Integer limitAduitor;

    /** 参谋长权限（0关闭，1开启） */
    @ApiModelProperty(value = "参谋长权限（0关闭，1开启）")
    @ExcelProperty(value = "参谋长权限（0关闭，1开启）", order = 8)
    @ExcelInfo
    @ValidatorLenMax(1)
    private Integer limitAdviser;

    /** 大队长权限（0关闭，1开启） */
    @ApiModelProperty(value = "大队长权限（0关闭，1开启）")
    @ExcelProperty(value = "大队长权限（0关闭，1开启）", order = 9)
    @ExcelInfo
    @ValidatorLenMax(1)
    private Integer limitChief;

    /** 头像图片地址 */
    @ApiModelProperty(value = "头像图片地址")
    @ExcelProperty(value = "头像图片地址", order = 10)
    @ExcelInfo
    @ValidatorLenMax(255)
    private String head;



}
